package com.wuster.controller;


import com.wuster.entity.dto.UserLoginDTO;
import com.wuster.result.Result;
import com.wuster.utils.BaseContext;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/login")
@Slf4j
public class OutLogin {


    /**
     * 登出
     * @return
     */
    @PostMapping("/outLogin")
    public Result save(){
        Long currentId = BaseContext.getCurrentId();
        log.info("用户{}登出", currentId);
        // 删除对应token
        return Result.success();
    }
}
